import requests

if __name__ == '__main__':

    url = 'https://movie.douban.com/j/chart/top_list'

    # UA伪装: 将对应的User-Agent封装到一个字典中
    headers = {
        'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36'
    }

    params={
        'type': 24,
        'interval_id': '100:90',
        'action':'',
        'start': 1,
        'limit': 10
    }

    response = requests.get(url=url,headers=headers,params=params)

    print(response.json())